package threading;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 26727
 * Date: 2024-08-11
 * Time: 20:16
 */
public class PrintABC1 {
    public static void main(String[] args) throws InterruptedException {
        Thread t1 = new Thread(()->{
            System.out.println("A");
        });

        Thread t2 = new Thread(()->{
            System.out.println("B");
        });

        Thread t3 = new Thread(()->{
            System.out.println("C");
        });

        t1.start();
        t1.join();
        t2.start();
        t2.join();
        t3.start();
        t3.join();
    }
}
